package com.lbj.service.impl;

import com.lbj.dao.CommentDao;
import com.lbj.dao.impl.CommentDaoImpl;
import com.lbj.domain.Comment;
import com.lbj.service.CommentService;

import java.util.List;

public class CommentServiceImpl implements CommentService {
    private CommentDao commentDao = new CommentDaoImpl();
    @Override
    public List<Comment> getComments(String id) {
        return commentDao.getComments(id);
    }

    @Override
    public boolean addComment(Comment comment) {
        return commentDao.addComment(comment) == 1?true:false;
    }
}
